package com.example.bigevent.mapper;

import com.example.bigevent.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper {


    @Select("select  * from article where category_id = #{categoryId}")
    List<Article> findByCategoryId(Integer categoryId);
}
